﻿using System.Web.Mvc;
using CodeCamp.BL.UI;
using CodeCamp.BL;

namespace CodeCamp.Web.Controllers
{
	[HandleError]
	[OutputCache(Duration = 90, VaryByParam = "*")]
	public class HomeController : CodeCampController
	{
		const string TWEET_SOURCE_URL = "http://search.twitter.com/search.atom?q=%23SoCalCodeCamp";
		[MvcMenuItem("Home", Order = 0)]
		
		public ActionResult Index()
		{
			var data = SyndicationBL.Refresh(TWEET_SOURCE_URL);
			return View(data);
		}
	}
}


